#!/usr/bin/env bash

# backup-maccallum-me.sh

# This programs purpose is to back-up a website and all of its sub-domains
# locally.

# Copyright (C) 2009-2010 Scott C. MacCallum
# scottmaccal@gmail.com

# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.

# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.

# You should have received a copy of the GNU General Public License
# along with this program.  If not, see <http://www.gnu.org/licenses/>.

#       |                                  80 Columns                                    |

    #######################################################################
    # Backup the maccallum.me website and all of its sub-domains locally. #
    #######################################################################

backup-maccallum-me()
{
  cd ~/programming-maccallum-me/html

  wget --recursive --page-requisites --execute robots=off --user-agent=mozilla http://www.maccallum.me/

  wget --recursive --page-requisites --execute robots=off --user-agent=mozilla http://aimaccal.blogspot.com/

  wget --recursive --page-requisites --execute robots=off --user-agent=mozilla http://astronomymaccal.blogspot.com/

  wget --recursive --page-requisites --execute robots=off --user-agent=mozilla http://gamesmaccal.blogspot.com/

  wget --recursive --page-requisites --execute robots=off --user-agent=mozilla http://gridcomputingmaccal.blogspot.com/

  wget --recursive --page-requisites --execute robots=off --user-agent=mozilla http://librariesmaccal.blogspot.com/

  wget --recursive --page-requisites --execute robots=off --user-agent=mozilla http://mathematicsmaccal.blogspot.com/

  wget --recursive --page-requisites --execute robots=off --user-agent=mozilla http://musicmaccal.blogspot.com/

  wget --recursive --page-requisites --execute robots=off --user-agent=mozilla http://programmingmaccal.blogspot.com/

  wget --recursive --page-requisites --execute robots=off --user-agent=mozilla http://travelingmaccal.blogspot.com/

  wget --recursive --page-requisites --execute robots=off --user-agent=mozilla http://faridayixmaccal.blogspot.com/

  wget --recursive --page-requisites --execute robots=off --user-agent=mozilla http://docs.google.com/View?id=dhr6gbgv_427c4czm87k

  wget --recursive --page-requisites --execute robots=off --user-agent=mozilla http://feeds.feedburner.com/Wwwmaccallumme

  wget --recursive --page-requisites --execute robots=off --user-agent=mozilla http://feeds.feedburner.com/Aimaccallumme

  wget --recursive --page-requisites --execute robots=off --user-agent=mozilla http://feeds.feedburner.com/Astronomymaccallumme

  wget --recursive --page-requisites --execute robots=off --user-agent=mozilla http://feeds.feedburner.com/Gamesmaccallumme

  wget --recursive --page-requisites --execute robots=off --user-agent=mozilla http://feeds.feedburner.com/GridComputingmaccallumme

  wget --recursive --page-requisites --execute robots=off --user-agent=mozilla http://feeds.feedburner.com/Librariesmaccallumme

  wget --recursive --page-requisites --execute robots=off --user-agent=mozilla http://feeds.feedburner.com/Mathematicsmaccallumme

  wget --recursive --page-requisites --execute robots=off --user-agent=mozilla http://feeds.feedburner.com/Musicmaccallumme

  wget --recursive --page-requisites --execute robots=off --user-agent=mozilla http://feeds.feedburner.com/Programmingmaccallumme

  wget --recursive --page-requisites --execute robots=off --user-agent=mozilla http://feeds.feedburner.com/Travelingmaccallumme

  wget --recursive --page-requisites --execute robots=off --user-agent=mozilla http://feeds.feedburner.com/Faridayixmaccallumme
}
backup-maccallum-me
#END OF FILE
